package xilou.log4j;

import org.apache.log4j.Logger;

/**
 * Created by yong on 2016/4/24.
 */
public class Example {
    public static void main (String[] arg) {
        //log4j.properties 是默认配置
        //直接读配置文件
        //PropertyConfigurator.configure( " D:/Code/conf/log4j.properties " );

        Logger logger = Logger.getLogger(Example.class);
        logger.info("log init ----------");
        logger.info(Example.class);
    }
}
